<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<div class="content-header">
</div>
<section class="content">
	<div class="box">
		<div class="box-header">
			<sf:form id="contextForm" cssClass="form-inline" method="post" modelAttribute="rechargeForm">
				<div class="form-group">
					<label>用户名:</label>
					<sf:input path="username" cssClass="form-control" autocomplete="off"/>
				</div>
				<input type="hidden" name="page">
				<button type="submit" class="btn btn-primary">查询</button>
			</sf:form>
		</div>
		<div class="box-body">
			<table class="table">
				<thead>
					<tr>
						<th>编号</th>
						<th>银行编号</th>
						<th>用户名称</th>
						<th>充值金额</th>
						<th>状态</th>
						<th>请求时间</th>
						<th>完成时间</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${rechargeLogs.iterator() }" var="obj">
						<tr>
							<td>${obj.id }</td>
							<td>${obj.bankCode }</td>
							<td>${obj.memberInfo.username }</td>
							<td>${obj.amount }</td>
							<td>${obj.status }</td>
							<td>${obj.createTime }</td>
							<td>${obj.finishTime }</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<c:import url="/WEB-INF/commons/Page.jsp">
                <c:param name="totalElements" value="${rechargeLogs.totalElements}"/>
                <c:param name="totalPages" value="${rechargeLogs.totalPages}"/>
                <c:param name="isLast" value="${rechargeLogs.last}"/>
                <c:param name="number" value="${rechargeLogs.number}"/>
            </c:import>
		</div>
	</div>
</section>